<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!-- 开发环境版本，包含了有帮助的命令行警告 -->
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
<div id="test">
<!--    数据双向绑定-->
    <input type="text" v-model="name">
    <p>hello {{name}}</p>
    <p v-text="name"></p>
</div>
<script type="text/javascript">
    const vm = new Vue({
        el: '#test',
        data: {
            name: 'ywh'
        }
    });
</script>
</body>
</html>